package com.lagou.config;

/**
 * 数据库连接地址
 * @author 陶肖寅
 * @version V1.0
 * @Package com.lagou.config
 * @email fromlx@126.com
 * @date 2020-04-07 17:28
 * @Copyright © 2020-2021 城云科技(中国)有限公司
 */
public class MysqlConfig {
    private String url;
    private String driver;
    private String username;
    private String password;

    public MysqlConfig() {
    }

    public MysqlConfig(String url, String driver, String username, String password) {
        this.url = url;
        this.driver = driver;
        this.username = username;
        this.password = password;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getDriver() {
        return driver;
    }

    public void setDriver(String driver) {
        this.driver = driver;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    @Override
    public String toString() {
        return "MysqlConfig{" +
                "url='" + url + '\'' +
                ", driver='" + driver + '\'' +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                '}';
    }
}
